﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ClassSite.Models;

namespace ClassSite.Controllers
{
      public class HomeController : Controller
      {
            ClassSiteEntities classDB = new ClassSiteEntities ( );

            public ActionResult feeling ( int id )
            {
                  //var usersAd = classDB.Userss.Find ( id );
                  var usersAd = from q in classDB.Userss
                            where q.usersID == id
                            select q;
		  foreach (var i in usersAd)
		  {
		              ViewBag.Message=i.name;
		  }

                  return View ( );
            }

            public ActionResult About ( )
            {
                  return View ( );
            }

      }
}
